# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
pkgname=py3-twilio
pkgver=9.0.4
pkgrel=1
arch="noarch"
pkgdesc="Twilio API client and TwiML generator"
url="https://pypi.python.org/project/twilio"
license="MIT"
depends="
	py3-flake8
	py3-mock
	py3-nose
	py3-jwt
	py3-requests
	py3-twine
	py3-tz
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
options="!check" # No testsuite
subpackages="$pkgname-pyc"
_pyname=twilio
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/t/twilio/twilio-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
options="!check" # No testsuite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
bc0c4de1e493fee85505f0ee5854d02c94024685be5340538cb1544ad6529213037902457403d69dcf40134aee04ccf5d4fc9a88dedb943040838000bc5d6e35  py3-twilio-9.0.4.tar.gz
"
